import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/page/home'
//商家入驻 登陆注册
import Login from '@/page/home/users/login'
import Register from '@/page/home/users/register'
import Findpwd from '@/page/home/users/findPwd'
import Nextstep from '@/page/home/users/nextstep'
import Submitdata from '@/page/home/users/submitdata'
import Unsubmit from '@/page/home/users/unsubmit'
//商家信息
import HomeIndex from '@/page/home/index'
import Auxiliary from '@/page/home/auxiliary'
import Changeword from '@/page/home/index/changeword'
import Changetel from '@/page/home/index/changetel'
import Addapply from '@/page/home/index/addapply'
//商品管理
import Release from '@/page/home/release'
import ImSunmit from '@/page/home/imSunmit'
import Matter from '@/page/home/release/matter'
import Invented from '@/page/home/release/invented'
import Audit from '@/page/home/audit'
import Refute from '@/page/home/refute'
import Stay from '@/page/home/stay'
import Stayed from '@/page/home/stayed'
import Force from '@/page/home/force'
// 运费管理
import Templates from '@/page/home/templates'
import Newly from '@/page/home/templates/newly'
import Storepay from '@/page/home/templates/storepay'
//订单管理
//1、普通
import Sendout from '@/page/home/orders/sendout'
import Takeover from '@/page/home/orders/takeover'
import Allorder from '@/page/home/orders/allorder'
import Allodetail from '@/page/home/orders/allodetail'
//2、秒杀
import SecondSendout from '@/page/home/orders/secondSendout'
import SecondTakeover from '@/page/home/orders/secondTakeover'
import SecondAllorder from '@/page/home/orders/secondAllorder'
//3、试用
import TrySendout from '@/page/home/orders/trySendout'
import TryTakeover from '@/page/home/orders/tryTakeover'
import TryAllorder from '@/page/home/orders/tryAllorder'
//3、拼团
import SpelSendout from '@/page/home/orders/spelSendout'
import SpelTakeover from '@/page/home/orders/spelTakeover'
import SpelAllorder from '@/page/home/orders/spelAllorder'
// 售后管理
import Return from '@/page/home/return'
import Refund from '@/page/home/refund'
import Exchange from '@/page/home/exchange'
import Complete from '@/page/home/complete'
import Userappeal from '@/page/home/userappeal'
//评价管理
import Recommended from '@/page/home/recommended'
import All from '@/page/home/all'
//对账管理
import Outaccount from '@/page/home/account/outaccount'
import Inaccount from '@/page/home/account/inaccount'
import Outdetail from '@/page/home/account/outdetail'
Vue.use(Router)
export default new Router({
  routes: [{
    path: '/',
    component: Index,
    children: [{
      path: '/',
      name: 'homeIndex',
      component: HomeIndex
    }, {
      path: '/submitdata',
      name: 'submitdata',
      component: Submitdata,
      meta: {
        settled: true
      }
    }, {
      path: 'auxiliary',
      name: 'auxiliary',
      component: Auxiliary
    }, {
      path: 'changeword',
      name: 'changeword',
      component: Changeword
    }, {
      path: 'changetel',
      name: 'changetel',
      component: Changetel
    }, {
      path: 'addapply',
      name: 'addapply',
      component: Addapply
    }, {
      path: 'release',
      name: 'release',
      component: Release
    }, {
      path: 'imSunmit',
      name: 'imSunmit',
      component: ImSunmit
    }, {
      path: 'matter',
      name: 'matter',
      component: Matter
    }, {
      path: 'invented',
      name: 'invented',
      component: Invented
    }, {
      path: 'audit',
      name: 'audit',
      component: Audit
    }, {
      path: 'refute',
      name: 'refute',
      component: Refute
    }, {
      path: 'stay',
      name: 'stay',
      component: Stay
    }, {
      path: 'stayed',
      name: 'stayed',
      component: Stayed
    }, {
      path: 'force',
      name: 'force',
      component: Force
    }, {
      path: 'templates',
      name: 'templates',
      component: Templates
    }, {
      path: 'newly',
      name: 'newly',
      component: Newly
    }, {
      path: 'storepay',
      name: 'storepay',
      component: Storepay
    }, {
      path: 'sendout',
      name: 'sendout',
      component: Sendout
    }, {
      path: 'takeover',
      name: 'takeover',
      component: Takeover
    }, {
      path: 'allorder',
      name: 'allorder',
      component: Allorder
    }, {
      path: 'allodetail',
      name: 'allodetail',
      component: Allodetail
    }, {
      path: 'secondSendout',
      name: 'secondSendout',
      component: SecondSendout
    }, {
      path: 'secondTakeover',
      name: 'secondTakeover',
      component: SecondTakeover
    }, {
      path: 'secondAllorder',
      name: 'secondAllorder',
      component: SecondAllorder
    }, {
      path: 'trySendout',
      name: 'trySendout',
      component: TrySendout
    }, {
      path: 'tryTakeover',
      name: 'tryTakeover',
      component: TryTakeover
    }, {
      path: 'tryAllorder',
      name: 'tryAllorder',
      component: TryAllorder
    }, {
      path: 'spelSendout',
      name: 'spelSendout',
      component: SpelSendout
    }, {
      path: 'spelTakeover',
      name: 'spelTakeover',
      component: SpelTakeover
    }, {
      path: 'spelAllorder',
      name: 'spelAllorder',
      component: SpelAllorder
    }, {
      path: 'return',
      name: 'return',
      component: Return
    }, {
      path: 'refund',
      name: 'refund',
      component: Refund
    }, {
      path: 'exchange',
      name: 'exchange',
      component: Exchange
    }, {
      path: 'complete',
      name: 'complete',
      component: Complete
    }, {
      path: 'userappeal',
      name: 'userappeal',
      component: Userappeal
    }, {
      path: 'recommended',
      name: 'recommended',
      component: Recommended
    }, {
      path: 'all',
      name: 'all',
      component: All
    }, {
      path: 'outaccount',
      name: 'outaccount',
      component: Outaccount
    }, {
      path: 'inaccount',
      name: 'inaccount',
      component: Inaccount
    }, {
      path: 'outdetail',
      name: 'outdetail',
      component: Outdetail
    }]
  }, {
    path: '/login',
    name: 'login',
    component: Login,
    meta: {
      ziduan: true
    }
  }, {
    path: '/register',
    name: 'register',
    component: Register,
    meta: {
      ziduan: true
    }
  }, {
    path: '/findPwd',
    name: 'findPwd',
    component: Findpwd,
    meta: {
      ziduan: true
    }
  }, {
    path: '/nextstep',
    name: 'nextstep',
    component: Nextstep,
    meta: {
      ziduan: true
    }
  }, {
    path: '/unsubmit',
    name: 'unsubmit',
    component: Unsubmit,
    meta: {
      ziduan: true
    }
  }]
})
